/**
 * 
 */
package laf.agents;

import java.io.Serializable;
import java.text.DecimalFormat;

public class Correlation implements Serializable {
	double correlation = 0.0;
	long credibility = 0L;
	private static final DecimalFormat format = new DecimalFormat("0.00");

	public double getCorrelation() {
		return correlation;
	}

	public void setCorrelation(double correlation) {
		this.correlation = correlation;
	}

	public long getCredibility() {
		return credibility;
	}

	public void setCredibility(long credibility) {
		this.credibility = credibility;
	}
	
	public String toString() {
		return format.format(correlation);
	}
}